<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title></title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/css.css">
</head>
<body>

	<form:form method="post" commandName="resource">
		<form:hidden path="resource_id" />
		<form:hidden path="parent_id" />
		<form:hidden path="parent_path" />

		<c:if test="${not empty parent}">
			<div class="form-group">
				<label>父节点名称：</label> ${parent.resource_name}
			</div>
		</c:if>

		<div class="form-group">
			<form:label path="resource_name">
				<c:if test="${not empty parent}">子</c:if>名称：</form:label>
			<form:input path="resource_name" />
		</div>
		<div class="form-group">
			<form:label path="resource_type">类型：</form:label>
			<form:select path="resource_type">
				<form:option value="menu" label="菜单" />
			</form:select>
		</div>

		<div class="form-group">
			<form:label path="resource_request_uri">URL路径：</form:label>
			<form:input path="resource_request_uri" />
		</div>


		<div class="form-group">
			<form:label path="permissions_code">权限字符串：</form:label>
			<form:input path="permissions_code" />
		</div>

		<form:button>${op}</form:button>

	</form:form>

</body>
</html>